package com.wc.service;

import com.wc.bean.MList;
import com.wc.dao.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WcMenuServicelmpl implements WcMenuService {
    @Autowired
    MenuMapper MenuMapper;

    public List<MList> selectList(Map<String, Object> map) {
        return MenuMapper.selectList(map);
    }
    public int  insertList(Map<String,Object> map){
        int r = MenuMapper.insertList(map);
        System.out.println(r+"插入数据");
       return r;
    }

    public int updateListstate(Map<String, Object> map) {
        int r = MenuMapper.updateListState(map);
        System.out.println(r+"更新数据");
        return r;
    }

    public int deleteList(Map<String,Object> map) {
            int r = MenuMapper.deleteList(map);
            System.out.println(r + "删除数据");
            return r;
    }
}
